package cn.siat.gene.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import cn.siat.common.core.annotation.Excel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * @Description: 方案状态表
 * @Author: Administrator
 * @Date: 2022-10-22
 * @Version: V1.0
 */
@Data
@TableName("programme_state")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "programme_state对象", description = "方案状态表")
public class ProgrammeState implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "主键")
    private String id;
    /**
     * 创建日期
     */
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建日期")
    private Date createTime;
    /**
     * 更新日期
     */
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "更新日期")
    private Date updateTime;
    /**
     * 方案名称
     */
    @Excel(name = "方案状态名称", width = 15)
    @ApiModelProperty(value = "方案状态名称")
    private String programmeName;
    /**
     * 方案编码
     */
    @Excel(name = "方案状态编码", width = 15)
    @ApiModelProperty(value = "方案状态编码")
    private String programmeNumber;
    /**
     * 模型状态:0失效；1有效
     */
    @Excel(name = "模型状态:0失效；1有效", width = 15)
    @ApiModelProperty(value = "模型状态:0失效；1有效")
    private Integer programmeState;
    /**
     * 是否删除 0删除 1 未删除
     */
    @Excel(name = "是否删除 0删除 1 未删除", width = 15)
    @ApiModelProperty(value = "是否删除 0删除 1 未删除")
    private Integer isDelete;
    /**
     * 创建员工
     */
    @Excel(name = "创建员工", width = 15)
    @ApiModelProperty(value = "创建员工")
    private String createStaffNo;
    /**
     * 修改员工
     */
    @Excel(name = "修改员工", width = 15)
    @ApiModelProperty(value = "修改员工")
    private String updateStaffNo;
    /**
     * 查询更新日期开始时间
     */
//    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd")
    @TableField(exist = false)
    private String startDate;

    /**
     * 查询更新日期结束时间
     */
//    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd")
    @TableField(exist = false)
    private String endDate;
    /**
     * 根据模型状态筛选
     */
    @TableField(exist = false)
    private String[] states;
    /**
     * 是否只读
     */
    @ApiModelProperty(value = "是否只读 0可编辑 1只读")
    private Integer isRead;
}
